package com.stt.experiment.zjx.gate.server.buffer;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 缓冲类
 *
 * @author yjy
 * 2018-05-19 20:10
 */
@Getter
@Setter
@ToString(callSuper = true)
public abstract class AbstractRequestBuffer extends AbstractBuffer {

    private static final long serialVersionUID = -8716425935945843198L;

    protected JSONObject data; // 请求参数

    @Override
    public String toJsonString() {
        return JSON.toJSONString(this);
    }

}
